<div class="hp-tab-newprd">
        <ul class="j-sw-nav">
            <li class="newprd-s1 tab-li on"><a href="<?php echo base_path();?>sales/salesman_distributor_map/list">查看</a></li>
            <li class="newprd-s2 tab-li"><a href="<?php echo base_path();?>sales/salesman_distributor_map/add">添加</a></li>
            <li class="newprd-s3 tab-li"><a href="<?php echo base_path();?>sales/salesman_distributor_map/assign">批量分配</a></li>
        </ul>

    <div class="newprd-s1">
        <div class="table-div">
            <div class="search-div">
                <?php if(get_user_role_name($user->uid) === 'administrator'){?>
                    <div class="small-select small-input"><div class="search-label">请选区域:</div><?php print render($form['juris_salesman']); ?></div>
                <?php }else{?>
                    <div class="small-select small-input"><div class="search-label">销售员:</div><?php print render($form['employee_list']); ?></div>
                <?php }?>
                <div class="small-select big-input" style="clear: both"><div class="search-label">经销商:</div><?php print render($form['address_distributor']); ?></div>
                <div class="search-submit"><?php print render($form['submit']); ?></div>
            </div>
            <img class="res-search" src='<?php echo base_path();?>sites/all/themes/tweme/images/images/res.png'>
            <div class="table-div">
                <?php print render($form['table']); ?>
            </div>
        </div>
    </div>
</div>

<?php print drupal_render_children($form); ?>

